Optimal. Leaf size=79 \[ -\frac {d \log (d+e x) \left (a e^2-b d e+c d^2\right )}{e^4}+\frac {x \left (a e^2-b d e+c d^2\right )}{e^3}-\frac {x^2 (c d-b e)}{2 e^2}+\frac {c x^3}{3 e} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.07, antiderivative size = 79, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 1, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.053, Rules used = {771} \[ \frac {x \left (a e^2-b d e+c d^2\right )}{e^3}-\frac {d \log (d+e x) \left (a e^2-b d e+c d^2\right )}{e^4}-\frac {x^2 (c d-b e)}{2 e^2}+\frac {c x^3}{3 e} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 771
Rubi steps
\begin {align*} \int \frac {x \left (a+b x+c x^2\right )}{d+e x} \, dx &=\int \left (\frac {c d^2-b d e+a e^2}{e^3}+\frac {(-c d+b e) x}{e^2}+\frac {c x^2}{e}-\frac {d \left (c d^2-b d e+a e^2\right )}{e^3 (d+e x)}\right ) \, dx\\ &=\frac {\left (c d^2-b d e+a e^2\right ) x}{e^3}-\frac {(c d-b e) x^2}{2 e^2}+\frac {c x^3}{3 e}-\frac {d \left (c d^2-b d e+a e^2\right ) \log (d+e x)}{e^4}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.03, size = 74, normalized size = 0.94 \[ \frac {e x \left (3 e (2 a e-2 b d+b e x)+c \left (6 d^2-3 d e x+2 e^2 x^2\right )\right )-6 \log (d+e x) \left (d e (a e-b d)+c d^3\right )}{6 e^4} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.97, size = 82, normalized size = 1.04 \[ \frac {2 \, c e^{3} x^{3} - 3 \, {\left (c d e^{2} - b e^{3}\right )} x^{2} + 6 \, {\left (c d^{2} e - b d e^{2} + a e^{3}\right )} x - 6 \, {\left (c d^{3} - b d^{2} e + a d e^{2}\right )} \log \left (e x + d\right )}{6 \, e^{4}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.18, size = 82, normalized size = 1.04 \[ -{\left (c d^{3} - b d^{2} e + a d e^{2}\right )} e^{\left (-4\right )} \log \left ({\left | x e + d \right |}\right ) + \frac {1}{6} \, {\left (2 \, c x^{3} e^{2} - 3 \, c d x^{2} e + 6 \, c d^{2} x + 3 \, b x^{2} e^{2} - 6 \, b d x e + 6 \, a x e^{2}\right )} e^{\left (-3\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.04, size = 95, normalized size = 1.20 \[ \frac {c \,x^{3}}{3 e}+\frac {b \,x^{2}}{2 e}-\frac {c d \,x^{2}}{2 e^{2}}-\frac {a d \ln \left (e x +d \right )}{e^{2}}+\frac {a x}{e}+\frac {b \,d^{2} \ln \left (e x +d \right )}{e^{3}}-\frac {b d x}{e^{2}}-\frac {c \,d^{3} \ln \left (e x +d \right )}{e^{4}}+\frac {c \,d^{2} x}{e^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.50, size = 81, normalized size = 1.03 \[ \frac {2 \, c e^{2} x^{3} - 3 \, {\left (c d e - b e^{2}\right )} x^{2} + 6 \, {\left (c d^{2} - b d e + a e^{2}\right )} x}{6 \, e^{3}} - \frac {{\left (c d^{3} - b d^{2} e + a d e^{2}\right )} \log \left (e x + d\right )}{e^{4}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 2.34, size = 85, normalized size = 1.08 \[ x^2\,\left (\frac {b}{2\,e}-\frac {c\,d}{2\,e^2}\right )+x\,\left (\frac {a}{e}-\frac {d\,\left (\frac {b}{e}-\frac {c\,d}{e^2}\right )}{e}\right )-\frac {\ln \left (d+e\,x\right )\,\left (c\,d^3-b\,d^2\,e+a\,d\,e^2\right )}{e^4}+\frac {c\,x^3}{3\,e} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.24, size = 71, normalized size = 0.90 \[ \frac {c x^{3}}{3 e} - \frac {d \left (a e^{2} - b d e + c d^{2}\right ) \log {\left (d + e x \right )}}{e^{4}} + x^{2} \left (\frac {b}{2 e} - \frac {c d}{2 e^{2}}\right ) + x \left (\frac {a}{e} - \frac {b d}{e^{2}} + \frac {c d^{2}}{e^{3}}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________